<?php
// echo $argv[0];


// $str = "abc_ddd_ccc";

// $arr = explode('_', $str);

// $new_str = '';
// foreach($arr as &$a) {
//     $a[0] = strtoupper($a[0]);
//     $new_str .= $a;
// }

// echo $new_str;
$arr = array(0=>1,"aa"=>2, 3, 4);
foreach($arr as $key=>$val){
    print($key == "aa" ? 5 : $val);
}
exit;
$x=array('aaa','','ccc','ddd','');
$y=array_unique($x);
echo count($x).','.count($y);
exit;
$a = [1,2,3];
var_dump(array_shift($a));
exit;

class Test{

    public static $Objects;

    public static function set($alias, $obj){
        self::$Objects[$alias] = $obj;
    }

    public static function get($alias){
        return self::$Objects[$alias] ?? false;
    }

    public static function _unset($alias){
        unset(self::$Objects[$alias]);
    }
}

$t = new Test;
$t::set("a", "123");
$res = $t::get("a");
$res2 = $t::get("a");

var_dump($res, $res2);